package string;

public class LengthDemo {
    public static void main(String[] args) {
        /*获取字符串长度*/
        String s="  1    2    ";
        s=s.trim();
        System.out.println(s);
    }
}
